// 查询商品下拉框
import request from "@/utils/request";

export function getBrandsSelect() {
  return request({
    url: '/system/wmsProductBrands/getBrandsSelect',
    method: 'get'
  })
}



// 查询供应商下拉框
export function getSupplierSelect() {
  return request({
    url: '/system/wmsSuppliers/getSupplierSelect',
    method: 'get'
  })
}



// 查询仓库下拉框
export function getWarehouseSelect() {
  return request({
    url: '/system/wmsWarehouseBase/getWarehouseSelect',
    method: 'get'
  })
}


//查询库区下拉框
export function getWarehouseAreaSelect() {
  return request({
    url: '/system/wmsWarehouseArea/getWarehouseAreaSelect',
    method: 'get'
  })
}

//根据仓库id来查询库区下拉框
export function getWarehouseAreaSelectByWarehouseId(parap) {
  return request({
    url: '/system/wmsWarehouseArea/getWarehouseAreaSelectByWarehouseId?warehouseId='+parap,
    method: 'get'
  })
}

//查询货架下拉框
export function getWarehouseRackSelect() {
  return request({
    url: '/system/wmsWarehouseRack/getWarehouseRackSelect',
    method: 'get'
  })
}

//根据库区id来查询货架下拉框
export function getWarehouseRackSelectWarehouseAreaId(param) {
  return request({
    url: '/system/wmsWarehouseRack/getWarehouseRackSelectWarehouseAreaId?warehouseAreaId='+param,
    method: 'get'
  })
}

//查询货位下拉框
export function getWmsWarehouseLocationSelect() {
  return request({
    url: '/system/wmsWarehouseLocation/getWmsWarehouseLocationSelect',
    method: 'get'
  })
}

//根据货架id来查询货位下拉框
export function getWmsWarehouseLocationSelectByRackId(param) {
  return request({
    url: '/system/wmsWarehouseLocation/getWmsWarehouseLocationSelectByRackId?rackId='+param,
    method: 'get'
  })
}
